<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html;charset=utf-8"%>
<%@ include file="/pub/siteinclud.jsp"%>
<html>
<head>
<title>雅宝路信息网 致力于服务雅宝路人的最大信息网</title>
<meta name="keywords" content="雅宝路 物流 交友 二手货 发货 甩货 免费发布信息"/>
<meta name="description" content="雅宝路信息网，致力于服务雅宝路人的最大信息网。为你提供房产、车辆、招工、兼职、物流等海量雅宝路分类信息"/>
<script type="text/javascript"
	src="<%=path %>/resources/js/shouye.js"></script>
<link rel="stylesheet"
	href="<%=request.getContextPath() %>/site/${SiteAccessPath}/css/css.css"
	type="text/css"/>
<link rel="stylesheet"
	href="<%=request.getContextPath() %>/site/${SiteAccessPath}/css/global.css"
	type="text/css"/>
</head>

<body>
<%@ include file="header.jsp" %>

<div class="position">
	您的位置：<a href="index">首页</a> > 
	<a href="javascript:changeType('<%=type_id %>')"><%=typen==null?"":typen %></a>
</div>
<div class="neiye_box">
	<div class="neiye_class" id="job_min_div">
  	</div>
</div>
<form name="frmqzzp" method="post" style="margin: 0" action="<%=path%>/ext/information/getLists?site_id=yblsite01&type_id=<%=type_id %>" id="frmqzzp">
<div class="neiye_list">
	<div class="neiye_listTitle">
   	  <h2 class="left">信息列表</h2>
    </div>
    <div class="neiye_listMain" id="job_list_div">
		<table border="0"  cellpadding="0" cellspacing="0" style="margin-left:10px" class="table_nbw  niceTable grid">
			<tbody>
				<tr class="template klId" style="height:30px;line-height: 30px;">
		   		    <td class="kltitle" style="text-align: left;" width="60%"></td>
		   		    <td class="kllogin_name" style="text-align: right" width="20%"></td>
		   		    <td class="klcreatetime" style="text-align: right" width="20%"></td>
				</tr>
			</tbody>
		</table>
    </div>
</div>
<div class="neiye_pagedown">
	<img id="loading"
		src="<%=imgPath %>/large-loading.gif" width="20px"
		class="hidden loading left" /><span class="pagediv"></span>
</div>	
</form>
<div style="clear:both"></div>
<%@ include file="footer.jsp" %>
<script type="text/javascript">
	$(function(){
        $.ajax({
			url :"<%=request.getContextPath() %>/sys/code/getCodes", //要访问的后台地址
		    data: "code=<%=type_id %>", //要发送的数据
		    type : 'POST', //使用get方法访问后台
		    dataType : 'json', //返回json格式的数据
		    success : function(data){
	   			var rows = data; 
	   			var aa = "<ul>";
		    	$.each(rows, function(i, n){
		    		aa += "<a href='#' style='color:#666' onclick='changeType(\""+n.code+"\")'><li><img src='<%=request.getContextPath() %>/site/${SiteAccessPath}/images/b.gif' width='32' height='32' style='border:none;' align='middle' /><span><b>"+n.name+"</b><br /><bdo style='color:#999'>"+n.code_describe+"</bdo></span></li></a>";
		        }); 
		        $("#job_min_div").html(aa+"</ul><div style='clear:both'></div>");
		    }
		});	 
		loadGird("frmqzzp", 1);
	})
		
	var callback_frmqzzp = function(rows, frm) {
       $.each(rows, function(i, n){
    	   var row = $("#"+frm+" .template").clone().removeClass("template");
   			       var keyValue = n.id;
	       row.find(".kltotop").text(n.totop);
	   	   if(n.totop==1){
	       row.find(".kltitle").html("<span style='float:left'><img src='<%=request.getContextPath() %>/site/${SiteAccessPath}/images/sjx.gif' style='float:left;margin:12px 0 0 8px' border='0' />&nbsp;&nbsp;<a href='xxzs?inforId="+n.id+"' style='color:#ce0000' target='_blank'>"+n.title+"</a></span><img src='<%=request.getContextPath() %>/site/${SiteAccessPath}/images/dot.jpg' style='float:left;margin:7px 0 0 8px' border='0' />");
	   	   }else{
	       row.find(".kltitle").html("<img src='<%=request.getContextPath() %>/site/${SiteAccessPath}/images/sjx.gif' style='float:left;margin:12px 0 0 8px' border='0' />&nbsp;&nbsp;<a href='xxzs?inforId="+n.id+"' target='_blank'>"+n.title+"</a>");
	   	   }
	       row.find(".kllogin_name").text(n.login_name);
	       row.find(".klcreatetime").text((new Date(n.createtime)).format("yyyy-MM-dd hh:mm:ss"));
	       
 		   row.attr("id","ready"+i);
           row.attr("class","tr_nbw");
           if(n.totop==1){
           	row.attr("class","ybl_tr_totop")
           }
           if(i!=0){
           	$("<tr bgcolor='#f1f1f1' class='list_line'><td height='1' colspan='3'></td></tr>").appendTo("#"+frm+" .grid");
           }
           row.appendTo("#"+frm+" .grid");
       });   
	}
	
	function changeType(typeId){
		 $("#frmqzzp").attr("action","<%=path%>/ext/information/getLists?site_id=yblsite01&type_id="+typeId);
		 reloadGrid("frmqzzp", 1);
	}
</script>
</body>
</html>